package com.atguigu.gulimall.member.service;

import com.atguigu.common.exception.PhoneException;
import com.atguigu.common.exception.UserNameException;
import com.atguigu.gulimall.member.vo.MemberUserLoginVo;
import com.atguigu.gulimall.member.vo.MemberUserRegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author liuShiYu
 * @email 2426237645@qq.com
 * @date 2025-03-12 21:37:06
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 注册***
     * @param memberUserRegisterVo
     * @return
     */
    void register(MemberUserRegisterVo memberUserRegisterVo);

    void checkPhoneUnique(String phone) throws PhoneException;

    void checkUserNameUnique(String username) throws UserNameException;

    MemberEntity login(MemberUserLoginVo memberUserLoginVo);
}

